---
layout: example
categories: example/v1.0.0
version: v1.0.0
title: Leaflet-MiniMap
description: Display a smaller navigable map using the Leaflet-MiniMap plugin.
tags:
  - plugins
---
<script src='{{site.tileApi}}/mapbox.js/plugins/leaflet-minimap/v1.0.0/Control.MiniMap.js'></script>
<link href='{{site.tileApi}}/mapbox.js/plugins/leaflet-minimap/v1.0.0/Control.MiniMap.css' rel='stylesheet' />

<div id='map'></div>

<script>
var map = L.mapbox.map('map', 'mapbox.streets')
    .on('ready', function() {
        new L.Control.MiniMap(L.mapbox.tileLayer('mapbox.streets'))
            .addTo(map);
    });
</script>
